<extend name="Base/common"/>

<block name="body">

	<body style="background:#faf8f8;">

		<!--老师评价-->

		<form action="{:U('addCourseEva')}" method="post" class="form-horizontal">

		<div id="TeatureChat">

			<header><a href="#" class="back"onclick="javascript :history.go(-1);"><img src="__IMG__/images/back_03.png"/></a>评价</header>

			<div class="orderList">

				<div class="StudyHead">

							<div class="per">

								<a href="#" class="f-fl"><img src="__ROOT__{$data.logo|getimg=###}"/></a>

								<div class="f-fl">

									<h1>{$data.nickname}<if condition="$data['sex'] eq 1 "><img src="__IMG__/images/nan_03.png"/><else /><img src="__IMG__/images/girl_03.png"/></if><span>{$data.salary}元/小时</span></h1>

									<p><img src="__IMG__/images/idxe_24.jpg"/> 授课: {$data.title}</p>

									<p><img src="__IMG__/images/idxe_27.jpg"/>地址: {$data.area_id|getParentArea=###}{$data.area_id|getArea=###}</p>

									<eq name="data.passed" value="1"><img src="__IMG__/images/idxe_21.jpg"/ class="posi"></eq>

								</div>

								<div class="clear"></div>

							</div>

						</div>

				<div class="LiSpan">

							<volist name='labels' id='vol'>

								<span class="class-span">{$vol.title}</span>

								

						  		<input style="display:none;" type="checkbox" class="ee" name="labels[]" value="{$vol.value}">

						  	</volist>

				</div>

					<input id="input-21e" value="0" type="number" class="rating" min=0 max=5 step=1 name="star" data-size="xs" >

				<div class="TextRaea">

					<textarea name="comment" placeholder="写下你对老师的授课感受~~"></textarea>

				</div>

			</div>

			<input type="hidden" name="order" value="{$order}">

			<input type="submit" class="ajax-post" target-form="form-horizontal" name="btn" id="btn" value="提交" />

		</div>

			<input type="hidden" name="course_id" value="{$data.id}">

			<input type="hidden" name="com_uid" value="{$data.uid}">

	    </form>



	    <script type="text/javascript">

	    //点击切换状态

        $ ('.class-span').toggle (function (){

            $ (this).css ('background-color', '#1DCE79');

            $ (this).next('input[class=ee]').attr("checked", true);

        }, function (){

            $ (this).css ('background-color', '#FFFFFF');

            $ (this).next("[class = ee]:checkbox").attr("checked", false);

        });

        jQuery(document).ready(function () {

	        $(".rating-kv").rating();

	    });

	    $(function(){

	    	$('.caption').remove();

	    });

	    </script>

	</body>

</block>